package a.g;

import a.c.d;
import a.c.k;
import a.c.x;
import a.f.db;
import a.f.mb;
import a.f.o;
import a.h.dc;
import a.h.z;
import a.i.p;
import a.j.g;
import a.j.ke;

public class y
  extends h
{
  private static final String q = "PARALLEL_EDGES";
  private static final String r = "CONSIDER_EDGE_DIRECTION";
  private static final String s = "USE_ADAPTIVE_LINE_DISTANCE";
  private static final String t = "LINE_DISTANCE";
  private static final String u = "JOINS_ENDS";
  private static final String v = "JOIN_DISTANCE";
  private static final String w = "USE_SELECTED_EDGES_AS_MASTER";
  private static final String x = "SCOPE";
  private static final String y = "ALL_EDGES";
  private static final String z = "SELECTED_EDGES";
  private static final String A = "AT_SELECTED_NODES";
  private String[] B = { "ALL_EDGES", "SELECTED_EDGES", "AT_SELECTED_NODES" };
  public static boolean C;
  
  public y()
  {
    super("PARALLEL_EDGES", "Roland Wiese", "layout parallel edges");
  }
  
  public dc j()
  {
    dc localdc = new dc(a());
    z localz = new z(localdc);
    db localdb = new db();
    localdc.a("SCOPE", this.B, 0);
    localdc.a("USE_SELECTED_EDGES_AS_MASTER", false);
    localdc.a("CONSIDER_EDGE_DIRECTION", localdb.b());
    localdc.a("USE_ADAPTIVE_LINE_DISTANCE", localdb.c());
    localdc.a("LINE_DISTANCE", (int)localdb.d(), 0, 50);
    localdc.a("JOINS_ENDS", localdb.e());
    localdc.a("JOIN_DISTANCE", (int)localdb.f(), 0, 50);
    localz.a("JOINS_ENDS", Boolean.TRUE, "JOIN_DISTANCE");
    return localdc;
  }
  
  public void n()
  {
    int i = f.p;
    boolean bool = f.o;
    dc localdc = i();
    mb local1 = new mb()
    {
      protected void a(o paramAnonymouso) {}
      
      protected boolean b(o paramAnonymouso)
      {
        return true;
      }
    };
    g localg = e();
    String str = localdc.h("SCOPE");
    k localk = localg.c(db.h);
    if (i == 0) {
      if (str.equals("AT_SELECTED_NODES"))
      {
        localObject = ke.c(localg);
        localg.a(db.h, new p()
        {
          private final x val$node2IsSelected;
          
          public boolean getBool(Object paramAnonymousObject)
          {
            int i = f.p;
            d locald = (d)paramAnonymousObject;
            if (i == 0) {
              if (!this.val$node2IsSelected.getBool(locald.e())) {
                if (i != 0) {
                  break label50;
                }
              }
            }
            label50:
            return this.val$node2IsSelected.getBool(locald.f());
          }
        });
        if (i != 0) {
          break label158;
        }
        if (!bool) {
          break label152;
        }
      }
    }
    if (i == 0)
    {
      if (str.equals("SELECTED_EDGES")) {
        localg.a(db.h, ke.d(localg));
      }
    }
    else
    {
      if (i != 0) {
        break label158;
      }
      if (!bool) {
        break label152;
      }
    }
    if ((i != 0) || (localg.c(db.h) != null)) {
      localg.j(db.h);
    }
    label152:
    if (localdc.g("USE_SELECTED_EDGES_AS_MASTER")) {
      label158:
      localg.a(db.i, ke.d(localg));
    }
    local1.q();
    local1.f(true);
    Object localObject = (db)local1.d();
    ((db)localObject).d(false);
    ((db)localObject).a(localdc.g("CONSIDER_EDGE_DIRECTION"));
    ((db)localObject).b(localdc.g("USE_ADAPTIVE_LINE_DISTANCE"));
    ((db)localObject).a(localdc.e("LINE_DISTANCE"));
    ((db)localObject).c(localdc.g("JOINS_ENDS"));
    ((db)localObject).b(localdc.e("JOIN_DISTANCE"));
    a(local1, false);
    if (localdc.g("USE_SELECTED_EDGES_AS_MASTER")) {
      localg.j(db.i);
    }
    if (i == 0) {
      if (localg.c(db.h) != null) {
        localg.j(db.h);
      }
    }
    if (localk != null) {
      localg.a(db.h, localk);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.g.y
 * JD-Core Version:    0.7.0.1
 */